﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002B1 RID: 689
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueSelectCellScRsp : IMessage<ChessRogueSelectCellScRsp>, IMessage, IEquatable<ChessRogueSelectCellScRsp>, IDeepCloneable<ChessRogueSelectCellScRsp>, IBufferMessage
	{
		// Token: 0x170008F4 RID: 2292
		// (get) Token: 0x06001EDA RID: 7898 RVA: 0x00057C67 File Offset: 0x00055E67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueSelectCellScRsp> Parser
		{
			get
			{
				return ChessRogueSelectCellScRsp._parser;
			}
		}

		// Token: 0x170008F5 RID: 2293
		// (get) Token: 0x06001EDB RID: 7899 RVA: 0x00057C6E File Offset: 0x00055E6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueSelectCellScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008F6 RID: 2294
		// (get) Token: 0x06001EDC RID: 7900 RVA: 0x00057C80 File Offset: 0x00055E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueSelectCellScRsp.Descriptor;
			}
		}

		// Token: 0x06001EDD RID: 7901 RVA: 0x00057C87 File Offset: 0x00055E87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellScRsp()
		{
		}

		// Token: 0x06001EDE RID: 7902 RVA: 0x00057C90 File Offset: 0x00055E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellScRsp(ChessRogueSelectCellScRsp other) : this()
		{
			this.selectMonsterId_ = other.selectMonsterId_;
			this.retcode_ = other.retcode_;
			this.cellId_ = other.cellId_;
			this.cEMCFKFEFPD_ = ((other.cEMCFKFEFPD_ != null) ? other.cEMCFKFEFPD_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001EDF RID: 7903 RVA: 0x00057CF4 File Offset: 0x00055EF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellScRsp Clone()
		{
			return new ChessRogueSelectCellScRsp(this);
		}

		// Token: 0x170008F7 RID: 2295
		// (get) Token: 0x06001EE0 RID: 7904 RVA: 0x00057CFC File Offset: 0x00055EFC
		// (set) Token: 0x06001EE1 RID: 7905 RVA: 0x00057D04 File Offset: 0x00055F04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectMonsterId
		{
			get
			{
				return this.selectMonsterId_;
			}
			set
			{
				this.selectMonsterId_ = value;
			}
		}

		// Token: 0x170008F8 RID: 2296
		// (get) Token: 0x06001EE2 RID: 7906 RVA: 0x00057D0D File Offset: 0x00055F0D
		// (set) Token: 0x06001EE3 RID: 7907 RVA: 0x00057D15 File Offset: 0x00055F15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170008F9 RID: 2297
		// (get) Token: 0x06001EE4 RID: 7908 RVA: 0x00057D1E File Offset: 0x00055F1E
		// (set) Token: 0x06001EE5 RID: 7909 RVA: 0x00057D26 File Offset: 0x00055F26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x170008FA RID: 2298
		// (get) Token: 0x06001EE6 RID: 7910 RVA: 0x00057D2F File Offset: 0x00055F2F
		// (set) Token: 0x06001EE7 RID: 7911 RVA: 0x00057D37 File Offset: 0x00055F37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IMBMFNLHNFK CEMCFKFEFPD
		{
			get
			{
				return this.cEMCFKFEFPD_;
			}
			set
			{
				this.cEMCFKFEFPD_ = value;
			}
		}

		// Token: 0x06001EE8 RID: 7912 RVA: 0x00057D40 File Offset: 0x00055F40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueSelectCellScRsp);
		}

		// Token: 0x06001EE9 RID: 7913 RVA: 0x00057D50 File Offset: 0x00055F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueSelectCellScRsp other)
		{
			return other != null && (other == this || (this.SelectMonsterId == other.SelectMonsterId && this.Retcode == other.Retcode && this.CellId == other.CellId && object.Equals(this.CEMCFKFEFPD, other.CEMCFKFEFPD) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001EEA RID: 7914 RVA: 0x00057DC0 File Offset: 0x00055FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SelectMonsterId != 0U)
			{
				num ^= this.SelectMonsterId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this.cEMCFKFEFPD_ != null)
			{
				num ^= this.CEMCFKFEFPD.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001EEB RID: 7915 RVA: 0x00057E47 File Offset: 0x00056047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001EEC RID: 7916 RVA: 0x00057E4F File Offset: 0x0005604F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001EED RID: 7917 RVA: 0x00057E58 File Offset: 0x00056058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CellId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CellId);
			}
			if (this.cEMCFKFEFPD_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.CEMCFKFEFPD);
			}
			if (this.SelectMonsterId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SelectMonsterId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001EEE RID: 7918 RVA: 0x00057EEC File Offset: 0x000560EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SelectMonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectMonsterId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this.cEMCFKFEFPD_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CEMCFKFEFPD);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001EEF RID: 7919 RVA: 0x00057F74 File Offset: 0x00056174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueSelectCellScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SelectMonsterId != 0U)
			{
				this.SelectMonsterId = other.SelectMonsterId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			if (other.cEMCFKFEFPD_ != null)
			{
				if (this.cEMCFKFEFPD_ == null)
				{
					this.CEMCFKFEFPD = new IMBMFNLHNFK();
				}
				this.CEMCFKFEFPD.MergeFrom(other.CEMCFKFEFPD);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001EF0 RID: 7920 RVA: 0x00058004 File Offset: 0x00056204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001EF1 RID: 7921 RVA: 0x00058010 File Offset: 0x00056210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 16U)
					{
						this.CellId = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						if (this.cEMCFKFEFPD_ == null)
						{
							this.CEMCFKFEFPD = new IMBMFNLHNFK();
						}
						input.ReadMessage(this.CEMCFKFEFPD);
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.SelectMonsterId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000CAD RID: 3245
		private static readonly MessageParser<ChessRogueSelectCellScRsp> _parser = new MessageParser<ChessRogueSelectCellScRsp>(() => new ChessRogueSelectCellScRsp());

		// Token: 0x04000CAE RID: 3246
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000CAF RID: 3247
		public const int SelectMonsterIdFieldNumber = 9;

		// Token: 0x04000CB0 RID: 3248
		private uint selectMonsterId_;

		// Token: 0x04000CB1 RID: 3249
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04000CB2 RID: 3250
		private uint retcode_;

		// Token: 0x04000CB3 RID: 3251
		public const int CellIdFieldNumber = 2;

		// Token: 0x04000CB4 RID: 3252
		private uint cellId_;

		// Token: 0x04000CB5 RID: 3253
		public const int CEMCFKFEFPDFieldNumber = 7;

		// Token: 0x04000CB6 RID: 3254
		private IMBMFNLHNFK cEMCFKFEFPD_;
	}
}
